package com.zhan.ielts.dao.impl;

import org.springframework.stereotype.Repository;

import com.zhan.frame.core.dao.impl.BaseDaoImpl;
import com.zhan.frame.core.exception.DaoException;
import com.zhan.ielts.dao.AppCheckDao;
import com.zhan.ielts.domain.AppCheck;

@Repository
public class AppCheckDaoImpl extends BaseDaoImpl<AppCheck> implements AppCheckDao {

	@Override
	public AppCheck queryLatestRecord(String type) {
		try {
			return sqlSessionTemplate.selectOne(getSqlName("selectLatest"), type);
		} catch (Exception e) {
			throw new DaoException(String.format("查询对象总数出错！语句：%s", getSqlName("selectLatest")), e);
		}
	}

}
